/* 
* @Date:   2016-11-16 10:57:50
*/
window.onload=function(){
       setFontSize();
        window.onresize=function(){
           setFontSize();
        };
        //根据设备尺寸设置html字体的大小
    function setFontSize(){
        var wid=document.body.clientWidth||document.documentElement.clientWidth;
        var wSize=wid<=640?640:1542;
        var size=100/wSize*wid;
            /*console.log(324234234324)*/
        document.getElementsByTagName('html')[0].style.fontSize=size+'px';
       
       
    }    
}